package com.codi.bus.core.dao.impl;

import com.codi.base.dao.BaseDAOImpl;
import com.codi.bus.core.dao.PortfolioDividentDao;
import com.codi.bus.core.service.model.ProtfolioDividentModel;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author: zengxl
 * @Description:
 * @Date: 2018/4/16 14:49
 */
@Repository("portfolioDividentDao")
public class PortfolioDividentDaoImpl extends BaseDAOImpl<Object> implements PortfolioDividentDao {

    @Override
    public List<ProtfolioDividentModel> getHasPortfolioTradeClientIds(String bgDate, String edDate) {
        Map<String, Object> map = new HashMap<>();
        map.put("bgDate", bgDate);
        map.put("edDate", edDate);
       return  this.getSqlSession().selectList("getHasPortfolioTradeClientIds",map);
    }

    @Override
    public List<ProtfolioDividentModel> getAllClientIds() {
        return  this.getSqlSession().selectList("getAllClientIds");
    }
}
